package com.hqyj.erpserver.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author HQYJ
 * @since 2021-10-25
 */
@ApiModel
public class ProductMaterialReceipt extends Model<ProductMaterialReceipt> {

    private static final long serialVersionUID = 1L;

    /**
     * 单据编号
     */
    @ApiModelProperty("单据编号，主键")
    @TableId(value = "pmr_id", type = IdType.AUTO)
    private Integer pmrId;

    /**
     * 日期
     */
    @ApiModelProperty("日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate pmrData;

    /**
     * 接收部门
     */
    @ApiModelProperty("接收部门")
    private Integer pmrRdeptId;

    /**
     * 仓库管理
     */
    @ApiModelProperty("仓库管理")
    private Integer pmrWhId;

    /**
     * 退库部门
     */
    @ApiModelProperty("退库部门")
    private Integer pmrQdeptId;

    /**
     * 收料原因
     */
    @ApiModelProperty("收料原因")
    private String pmrRreason;

    /**
     * 采购订单号
     */
    @ApiModelProperty("采购订单号")
    private Integer pmrPoId;

    /**
     * 订单号
     */
    @ApiModelProperty("订单号")
    private Integer pmrOrder;

    /**
     * 合约号
     */
    @ApiModelProperty("合约号")
    private Integer pmrContract;

    /**
     * 产品编号
     */
    @ApiModelProperty("产品编号")
    private Integer pmrPId;

    /**
     * 产品名
     */
    @ApiModelProperty("产品名")
    private String pmrPName;

    /**
     * 规格
     */
    @ApiModelProperty("规格")
    private Integer pmrSpecification;

    /**
     * 等级
     */
    @ApiModelProperty("等级")
    private String pmrGrade;

    /**
     * 计量单位
     */
    @ApiModelProperty("计量单位")
    private String pmrUnit;

    /**
     * 数量
     */
    @ApiModelProperty("数量")
    private Integer pmrNumber;

    /**
     * 总金额
     */
    @ApiModelProperty("总金额")
    private Double pmrTotalmoney;

    /**
     * 备注
     */
    @ApiModelProperty("备注")
    private String pmrDesc;


    public Integer getPmrId() {
        return pmrId;
    }

    public void setPmrId(Integer pmrId) {
        this.pmrId = pmrId;
    }

    public LocalDate getPmrData() {
        return pmrData;
    }

    public void setPmrData(LocalDate pmrData) {
        this.pmrData = pmrData;
    }

    public Integer getPmrRdeptId() {
        return pmrRdeptId;
    }

    public void setPmrRdeptId(Integer pmrRdeptId) {
        this.pmrRdeptId = pmrRdeptId;
    }

    public Integer getPmrWhId() {
        return pmrWhId;
    }

    public void setPmrWhId(Integer pmrWhId) {
        this.pmrWhId = pmrWhId;
    }

    public Integer getPmrQdeptId() {
        return pmrQdeptId;
    }

    public void setPmrQdeptId(Integer pmrQdeptId) {
        this.pmrQdeptId = pmrQdeptId;
    }

    public String getPmrRreason() {
        return pmrRreason;
    }

    public void setPmrRreason(String pmrRreason) {
        this.pmrRreason = pmrRreason;
    }

    public Integer getPmrPoId() {
        return pmrPoId;
    }

    public void setPmrPoId(Integer pmrPoId) {
        this.pmrPoId = pmrPoId;
    }

    public Integer getPmrOrder() {
        return pmrOrder;
    }

    public void setPmrOrder(Integer pmrOrder) {
        this.pmrOrder = pmrOrder;
    }

    public Integer getPmrContract() {
        return pmrContract;
    }

    public void setPmrContract(Integer pmrContract) {
        this.pmrContract = pmrContract;
    }

    public Integer getPmrPId() {
        return pmrPId;
    }

    public void setPmrPId(Integer pmrPId) {
        this.pmrPId = pmrPId;
    }

    public String getPmrPName() {
        return pmrPName;
    }

    public void setPmrPName(String pmrPName) {
        this.pmrPName = pmrPName;
    }

    public Integer getPmrSpecification() {
        return pmrSpecification;
    }

    public void setPmrSpecification(Integer pmrSpecification) {
        this.pmrSpecification = pmrSpecification;
    }

    public String getPmrGrade() {
        return pmrGrade;
    }

    public void setPmrGrade(String pmrGrade) {
        this.pmrGrade = pmrGrade;
    }

    public String getPmrUnit() {
        return pmrUnit;
    }

    public void setPmrUnit(String pmrUnit) {
        this.pmrUnit = pmrUnit;
    }

    public Integer getPmrNumber() {
        return pmrNumber;
    }

    public void setPmrNumber(Integer pmrNumber) {
        this.pmrNumber = pmrNumber;
    }

    public Double getPmrTotalmoney() {
        return pmrTotalmoney;
    }

    public void setPmrTotalmoney(Double pmrTotalmoney) {
        this.pmrTotalmoney = pmrTotalmoney;
    }

    public String getPmrDesc() {
        return pmrDesc;
    }

    public void setPmrDesc(String pmrDesc) {
        this.pmrDesc = pmrDesc;
    }

    @Override
    protected Serializable pkVal() {
        return this.pmrId;
    }

    @Override
    public String toString() {
        return "ProductMaterialReceipt{" +
        "pmrId=" + pmrId +
        ", pmrData=" + pmrData +
        ", pmrRdeptId=" + pmrRdeptId +
        ", pmrWhId=" + pmrWhId +
        ", pmrQdeptId=" + pmrQdeptId +
        ", pmrRreason=" + pmrRreason +
        ", pmrPoId=" + pmrPoId +
        ", pmrOrder=" + pmrOrder +
        ", pmrContract=" + pmrContract +
        ", pmrPId=" + pmrPId +
        ", pmrPName=" + pmrPName +
        ", pmrSpecification=" + pmrSpecification +
        ", pmrGrade=" + pmrGrade +
        ", pmrUnit=" + pmrUnit +
        ", pmrNumber=" + pmrNumber +
        ", pmrTotalmoney=" + pmrTotalmoney +
        ", pmrDesc=" + pmrDesc +
        "}";
    }
}
